Added ability to read database from byte array
Added ability to read database from byte array
Renamed constructor and param