Fixes first implementation of MYSQL DB access.