Added some delays between starting of DB and shutdown to allow newly created user to be written