Added db, migrations and indexing.