Get database appending working