store procedure of department and location