basic database calls for front page