added dbconfig, updated models