fixing database declarations