simplify library by using sqlite as backend