add splitting logic to the database installer