Refactor DB session handling

Replaced session with session_maker. W'll create a new session if a method that needs a session is executed.