Improved task for creating ci dbs

catching exit-status and reporting error