getUser method is now also using MDB