Database check for user access on specific pages