Improved the code

Added functionality to generate configuration file
Added a select function
Corrected the query() function to return boolean always
Added function.php with 3 new functions