Create table_exists.php

Tests to see if a database contains a specified table; tries to avoid throwing exceptions where possible.