calculate_borders handles db connection
print what we're doing