postgres_adapter.rb: this way we don't have to instance_eval
postgres_adapter.rb: use subquery to reduce query number
now we properly setup :unique_index for postgres. TODO: sqlite, mysql
reduce lines
now sqlite matches postgres
sqlite_adapter.rb: follow uniqueness
fix indention
now mysql could also adopt unique indices and common indices