update to agentsdb, agents form and main form