Implemented select on pageload and started implementing queries.