database connection.

DbManager and interface
Merge branch 'persistance'