Moved db session config to before all section