fixing the database
more bug fixing
stupid typo