updated to handle users on MySQL