Added basic sqlite database functionality