Added functions.php

Has a database connection function.