Generate attribute methods, not define, in order to check for connection and table existence