database config and session stored on database