Move update sql into its own file