Improving Security of Order-Preserving Encryption and Its Applications in Data Outsourcing