changed from mysqli to PDO;
changed config file name;

code is still very buggy from changes and requires lots of testing / fixes