Implement function get_source_id
Implement the function get_source_id necessary for the entityinitializer, which gets the ID of a source according to the sources table. If the source name is not found in the table, the source is inserted, and then the ID is returned for the new source name.