prototype of the sqlite database implemented.
beap functions missing to make use of it. :(