Switch to mongoose and session config