install client libraries depending on the database type
refactor confusing block + don't search the entire array
rely on the openstack-common cookbook for the mysql recipes
use public_port name instead of service_port to avoid confusion