added the databse and relationships