changed database scheme