Store the input in a database table