fixed sqlite db initialization