Moved config module
Add Session model and improve database infrastructure