Implement sqlite database