added function to set date format and make PDO object public
added table exist function to work with Artisan
change timestamp to date with default sys date