changing the order of the database input arguments