removed unwanted zeros from random tilecode distribution
write tilings to database