Building a small database manager