built out the database with belongs to etc