added security from database