Database buildout

Database migration and building packages from the database is complete