add migration, index layout, create databes table