Trying to fix db session errors, not working