Fix deploy for shared databases