adding datbase and stuff