first try to implement sqlite support