Copcast database script