Gurpreet| #1965| Ensure that deploy runs before db runs