[#941860] Merge methods for connecting with database

Methods for database connection was merged into single one in server_utils.py