fix db user creation bug, support vagrant deploy