switched to sqlite database

Signed-off-by: nixnodes <code@eth.si>
removed <filelog-rebuild> (moved to flog/mk_index.sh)

Signed-off-by: nixnodes <code@eth.si>