Is there a way to reduce delay between database reading/writing?