#9849 Replace to DBAPI functions