added functionality to use Amazon RDS mysql instance (cloud database )