added db and updated models