[backend] Automating initial db migrations