changed sql statement for reset db