switching accounts works, fixed db crash