first pass at making construct function w/ db