added sqlite functionality with persist