Added structure for performing database checks...

Added structure for performing database checks using session data from
cookies.