Minor bug fixes

no longer prints SQLError to stack trace when performing first function
on a class that has no table yet.