Move all custom SQL into a single file