Use a macro for calculating array element counts
Return offset after appending space to DB data after all
Add original DB files as resources