add db template config
add basic migrations