sqlite import now works good

- some refactoring
- I now work on half automatical loading of faces into database