Refactor sqlite create and seed