Modify deploy logic to search for proper database name