[Bug fix] remove database name in some sql