Added database and migrations

Added database and migrations