Wrapped up sqlite queries v1, added some interface funcions to work with them... looking good!