[fix] updated database schema
[fix] formatting