Functioning database interaction added to front page