Build create/drop database SQL scripts dynamically.