Added ability to read database from byte array
Added ability to read database from byte array