new database tables and agent reference