Mysqli support & optimizations

Added mysqli support
Added more significant default values for static classes
Removed useless insert function from functions.php