hopefully fixing database