Update database schema. Performance optimization. API logic update