Added database name as a argument.