PHP Script to check if a license is registered on (external) database