Added some db stuff

Added function to populate a factorial table, need one to retrieve them
and return a beeterfloat