Use declarative sqlalchemy base. Drop global update on init_social. Refs #1