decreased sql usuage on main page