Halfway constructing the database object

Signed-off-by: nicholaslum444 <nicholaslum444@hotmail.com>