feat: changed job return codes and usage of Lock DB