Implements dbins() and replace sqlin/out to dbin/out.