Added support for nested transactions (Only with sqlite atm)
Made order an enum
Made dirtykeys update correctly