Initial DB base with migrations and command

Change-Id: I0981ad0f387e8c512036d7384727acbc1f720a5c