pharmacy application database script