Wrapped up vsync in database