add schema and db interface