Storing bots in PostgreSQL database