first iteration of postgre-compatible code that works from collection to release creation using test cases