if it's an empty database this will now properly run