Finished a first running version of sqlite database connector.