db: refactor db attr instances to databases for readable