Added tests, fixed config, updated sqlite