CHANGE-511 - Change DB functions from mysql to mysqli