Added database configuration.

Added migrations to create the application database tables.