Fix database pull