Altering Options system to make use of Sessions rather than individual SQL queries