to be linked with sqlite