Scripts: missing argument and DB opening

See also http://pythonhosted.org/anybox.recipe.openerp/scripts.html#writing-openerp-scripts