added parameter date to sql query when adding user