[database] separate schema from data