Add and migrate db