Add database and input data