#9849 Replace to DBAPI functions #step1
#9849 Replace to DBAPI functions #step2