Remove bytearray usage from db module

Actually faster *not* to use bytearrays internally.