Added functions, cleaned up the database connection code, displayed some data from the database!