some progress on db models