Add tableExists to public db api
add unit tests for tableExists and dropTable