Add db script lines to main script