feat add schema and db queries