partial db_target implementation
polishing code
closed db_target branch