simplistic db insert - does not scale well :(