Autoload database and session helper