get security info from database