added a small database library