Saveing users to db and cleanup