Updated db to accept hashes. LayoutScheme now uses hash data type