static function init()
 {
     BasicModel::$connect_function = BasicModel::$dbconfig['engine'] . 'i_connect';
     BasicModel::$connect_function_error = BasicModel::$dbconfig['engine'] . 'i_connect_error';
     BasicModel::$db_select_function = BasicModel::$dbconfig['engine'] . 'i_select_db';
     BasicModel::$db_query_function = BasicModel::$dbconfig['engine'] . 'i_query';
     BasicModel::$query_inserted_id = BasicModel::$dbconfig['engine'] . 'i_insert_id';
     BasicModel::$db_query_num_rows_function = BasicModel::$dbconfig['engine'] . 'i_num_rows';
     BasicModel::$query_fetch_assoc_function = BasicModel::$dbconfig['engine'] . 'i_fetch_assoc';
     $connect_function = BasicModel::$connect_function;
     BasicModel::$connection = $connect_function(BasicModel::$dbconfig['host'], BasicModel::$dbconfig['username'], BasicModel::$dbconfig['password']);
     if (!BasicModel::$connection) {
         die("Connection failed: " . $connect_function_error());
     }
     $db_select_function = BasicModel::$db_select_function;
     $db_select_function(BasicModel::$connection, BasicModel::$dbconfig['database']) or die("Unable to select database");
 }