Revert "Removed db_close, db_connect and errors files -> put into functions // Added DB constants"

This reverts commit 0a2c07b207b0b021dae570a2c50f644a8cf63f9f.