[Bug Fix] Remove database name in some sql