Attempting to write and read DB