Added Functions and sql statements. user.php populated by mysql db