fixing database display