dababase script