Three locked up for illegal prescription medication operation