Move controllers in a separate script

Signed-off-by: Igor Popov <igor@igorpopov.io>
Simplify the comment.php script

Signed-off-by: Igor Popov <igor@igorpopov.io>
Fix path to post.php

Signed-off-by: Igor Popov <igor@igorpopov.io>
Fix variable name

Signed-off-by: Igor Popov <igor@igorpopov.io>
Remove duplicate line

Signed-off-by: Igor Popov <igor@igorpopov.io>
Add the id field to the user

Signed-off-by: Igor Popov <igor@igorpopov.io>
Format code properly

Signed-off-by: Igor Popov <igor@igorpopov.io>
Load the database configuration only once

Signed-off-by: Igor Popov <igor@igorpopov.io>
Rename to configuration.php

Signed-off-by: Igor Popov <igor@igorpopov.io>
Fix formatting

Signed-off-by: Igor Popov <igor@igorpopov.io>