added db_type and db_host in config
swapped mysqli for PDO connnection
used PDO query function
removed database require class