Improve db refactoring script. Improve sql. Other
Merge branch 'db_refactor' of https://github.com/nerdzeu/nerdz.eu into db_refactor