added databse contents to appdelegate