We report on the creation of a database for quarkonium and open heavy-flavour production in hadronic collisions. This database, made as a collaboration between HepData and the ReteQuarkonii network of the integrating activity I3HP2 of the 7th Framework Programme, provides an up-to-date review on quarkonia and open heavy-flavour existing data. We first present the physics motivation for this project, which is connected to the aim of the ReteQuarkonii network, studies of open heavy-flavour hadrons and quarkonia in nucleus-nucleus collisions. Then we give a general overview of the database and describe the HepData database for particle physics, which is the framework of the quarkonia database. Finally we describe the functionalities of the database with as example the comparison of the production cross section for the J/$\psi$ meson at different energies.