Implemented working SQL interface
More internals work
minor changes
internal work
working internals
Internals are finished