Add database script for tests