Fix code style.
Add author.
Silence some inspections.
Code style.
Use better prepared statements.