Fix database variables