Added database files

1. Added database migration files.
2. Added database models.
3. Updated database config.