removing some key constraints and enabling sqlite support
added support for nesting