fix db accesses

context switches must not happen within a sqlalchemy transaction
1 job for django in 53 seconds (queued for 57 seconds)
Status Name Job ID Coverage
  Build
failed bootstrap #231306

00:00:53

 
Name Stage Failure
failed
bootstrap Build
Step 7/7 : EXPOSE	25  143
---> Using cache
---> cacb460e7164
Successfully built cacb460e7164
Successfully tagged allgo_dev-smtpsink:latest
+ mkdir -p -- data/mysql
+ docker-compose run --rm dev-mysql sh -e -c 'if [ -f /dk/container_init ] ; then sleep 1; /dk/container_init ; fi'
error: db is already initialised
ERROR: Job failed: exit code 1