fixed a few things in database

database fixed and ready