Applying security, database authentication works, preauthorize not yet.