database changes by Vadim Chugunov