Minor fixes, and added sqlite dependcies for future functionality