got sqlite database working