##Interface
Cleaned up SQL bugs.