implementation with db

Original code was replaced by the new one.
In the new logprocessor sqlite3 is used in order
to being able to process big logs.