adopt database class to my-sqli