Added migration stuff for the sqlite db