refine db connection
refine release steps