added sqlite stuff