Added function to check if a url is valid
Added method for db connections.
Added register_shorturl method
Added function to show correct shorted url, added s.php
Adds getter for long url, and uses it on e.php