log sql queries
Implements home page