Refactoring Collection as Database

To maintain keywords between couch and phouch.