If you find yourself in a position where you HAVE to manually add interfaces directly to the database, then this stored procedure may help. If you have any custom fields, add them and their default values to the stored procedure too.
Please note: this stored procedure ONLY adds a record to the Interfaces table. All other records (node, custom pollers, ...) should be added with similar methods.