having issues with the database