Can it be moved to DB driver so we'll be able to implement it for other DBs w/o doing such checks?