Ch6: Made database with dynamic size