Fix database deployment