Remove db name from sql.