database: simplier hidden logic