How can I collect data into a usable database