add mysqli and change database class file