protected function buildInsert($data, $set_timestamps)
	{
		//define a fields container array
		$fields = array(); 

		//define a values container array
		$values = array();

		//define a template format for query
		$template = "INSERT INTO %s (%s) VALUES (%s)";

		//check if the $set_timestamp is true and add created_at fields
		if($set_timestamps) $data['date_created'] = date('Y-m-d h:i:s');

		//loop through the input data 
		foreach ($data as $field => $value) 
		{
			//populate the fields array
			$fields[] = $field;

			//populate the values array
			$values[] = $this->quote($value);

		}

		//convert strings array to string
		$fields = join(", ", $fields);

		//convert values array to string
		$values = join(", ", $values);

		//return the formated query string
		return sprintf($template, $this->froms, $fields, $values);

	}