Removed wordpress auth, refactored for postgres db