Fixed var initialization and added initial survey database to resolve #17