Replace deprecated mysql* functions with new DB class