Issue#28 db migrations

Closes issue #28