better db support

Additions
- SqlCollection supports now also insert
- now a seperate abstract repository for MongoDb and Sql

To do
- SqlCollection update
- Seperate mail into read and write directory