Added sqlite helper functions.