fixing minor database issue