SQL queries

Started View Implementation