Basic SQL, user entity and security