dumb way to get db object