fixed error in TimberTerm where $wpdb was declared too late
added loop_to_id function to timber.php
added a get_params to wp-helper