Moved sql to migration.
Added logic to read secrets files but to ignore them in git
Add migration controller and update some formatting