started models for db and templates