db layer added, migrations added